<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/indesx.css">
    <link rel="stylesheet" href="../css/css/swiper.min.css">
    <script src="../js/js/swiper.min.js"></script>
    <link rel="stylesheet" href="../css/3.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .navbar a{
            text-decoration: none;
            color: #000;
        }
    </style>
</head>

<div class="top">
    <ul class="navbar">
        <li onclick="l(1)">网站首页</li>
        <li onclick="l(2)">关于我们</li>
        <li onclick="l(3)">酒店房间</li>
        <li><a href="Login.html">退出/切换</a></li>
    </ul>
</div>  
<iframe src="1.html" frameborder="0" style="width: 100%;height: 100vh;"></iframe>
<script>
    function l(index){
    var iframe = document.querySelector('iframe')
    iframe.src = index + '.html'
    }
</script>
</html>